package com.daaug.demo.robotlegs.texttospeech.commands
{
	import com.daaug.demo.robotlegs.texttospeech.events.TTSEvent;
	import com.daaug.demo.robotlegs.texttospeech.models.TxtAudioModel;
	import com.daaug.demo.robotlegs.texttospeech.services.GoogleTranslateService;
	
	import org.robotlegs.mvcs.Command;
	
	public class GetRemoteAudioCommand extends Command
	{
		[Inject]
		public var event:TTSEvent;
		
		[Inject]
		public var service:GoogleTranslateService;
		
		override public function execute():void {
			service.getAudio(event.text);
		}
	}
}